Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK-4654] support organization get member roles #574

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

jimmyjames
Copy link
Contributor

Changes

This change adds support for sending the fields and include_fields parameters to the GET /api/v2/organizations/{orgId/members endpoint.

Usage

// return fields roles, email, name, user_id
FieldsFilter fieldsFilter = new FieldsFilter().withFields("roles,email,name,user_id", true);

List<Member> membersList = managementAPI.organizations().getMembers("orgId", pageFilter, fieldsFilter)
    .execute()
    .getBody()
    .getItems();

Role firstMemberRole = membersList.get(0).getRoles();

Fixes #573

@jimmyjames jimmyjames requested a review from a team as a code owner October 24, 2023 21:05
@jimmyjames jimmyjames temporarily deployed to internal October 24, 2023 21:06 — with GitHub Actions Inactive
@jimmyjames jimmyjames temporarily deployed to internal October 24, 2023 21:06 — with GitHub Actions Inactive
Copy link
Contributor

@poovamraj poovamraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jimmyjames jimmyjames merged commit a1b7ffc into master Oct 25, 2023
12 checks passed
@jimmyjames jimmyjames deleted the members-with-roles branch October 25, 2023 18:13
@jimmyjames jimmyjames mentioned this pull request Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add roles to organization member call
2 participants